﻿/*  For more information on this example visit the article to this code on my blog at 
 *  http://www.ticklishtechs.net/2008/04/12/to-restrict-dynamically-the-usage-of-domain-properties-in-dsl-models/ */

using BenjaminSchroeter.Dsl.UserRestrictions;

namespace BenjaminSchroeter.RestrictPropertiesExample
{
    partial class RestrictPropertiesExampleDiagram
    {
        public RestrictionModes GetRestrictionsValue()
        {
            return (RestrictionModes) UserRestrictionProvider.GetRestrictionMode(this.Store);
        }

        public void SetRestrictionsValue(RestrictionModes value)
        {
            UserRestrictionProvider.SetRestrictionMode(this.Store,(int) value);
        }
    }
}
